package com.chuji.crmcj.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.chuji.crmcj.fragment.BaseFragment;

import java.util.List;

/**
 * Created by w.pitt on 2016/1/28.
 */
public class OrderListAdapter extends FragmentPagerAdapter {

    List<BaseFragment> mFragments;
    public OrderListAdapter(FragmentManager fm, List<BaseFragment> fragments) {
        super(fm);
        this.mFragments=fragments;
    }

    @Override
    public Fragment getItem(int position) {
        return mFragments.get(position);
    }

    @Override
    public int getCount() {
        return mFragments.size();
    }


}
